﻿using Microsoft.EntityFrameworkCore.Migrations;

#nullable disable

namespace KWT.DRG_DIP.API.Migrations
{
    /// <inheritdoc />
    public partial class _20250407165720 : Migration
    {
        /// <inheritdoc />
        protected override void Up(MigrationBuilder migrationBuilder)
        {
            migrationBuilder.AlterColumn<decimal>(
                name: "ZGDEBZ",
                table: "List_ChargeInfo",
                type: "decimal(18,2)",
                nullable: false,
                comment: "职工大额补助",
                oldClrType: typeof(decimal),
                oldType: "decimal(18,10)",
                oldPrecision: 10,
                oldScale: 2,
                oldComment: "职工大额补助");

            migrationBuilder.AlterColumn<decimal>(
                name: "YLJZZF",
                table: "List_ChargeInfo",
                type: "decimal(18,2)",
                nullable: false,
                comment: "医疗救助支付",
                oldClrType: typeof(decimal),
                oldType: "decimal(18,10)",
                oldPrecision: 10,
                oldScale: 2,
                oldComment: "医疗救助支付");

            migrationBuilder.AlterColumn<decimal>(
                name: "YBTCJJZF",
                table: "List_ChargeInfo",
                type: "decimal(18,2)",
                nullable: false,
                comment: "医保统筹基金支付",
                oldClrType: typeof(decimal),
                oldType: "decimal(18,10)",
                oldPrecision: 10,
                oldScale: 2,
                oldComment: "医保统筹基金支付");

            migrationBuilder.AlterColumn<decimal>(
                name: "SYBX",
                table: "List_ChargeInfo",
                type: "decimal(18,2)",
                nullable: false,
                comment: "商业保险",
                oldClrType: typeof(decimal),
                oldType: "decimal(18,10)",
                oldPrecision: 10,
                oldScale: 2,
                oldComment: "商业保险");

            migrationBuilder.AlterColumn<decimal>(
                name: "QYBC",
                table: "List_ChargeInfo",
                type: "decimal(18,2)",
                nullable: false,
                comment: "企业补充",
                oldClrType: typeof(decimal),
                oldType: "decimal(18,10)",
                oldPrecision: 10,
                oldScale: 2,
                oldComment: "企业补充");

            migrationBuilder.AlterColumn<decimal>(
                name: "JMDBBX",
                table: "List_ChargeInfo",
                type: "decimal(18,2)",
                nullable: false,
                comment: "居民大病保险",
                oldClrType: typeof(decimal),
                oldType: "decimal(18,10)",
                oldPrecision: 10,
                oldScale: 2,
                oldComment: "居民大病保险");

            migrationBuilder.AlterColumn<decimal>(
                name: "GWYYLBZ",
                table: "List_ChargeInfo",
                type: "decimal(18,2)",
                nullable: false,
                comment: "公务员医疗补助",
                oldClrType: typeof(decimal),
                oldType: "decimal(18,10)",
                oldPrecision: 10,
                oldScale: 2,
                oldComment: "公务员医疗补助");

            migrationBuilder.AlterColumn<decimal>(
                name: "GRZHZF",
                table: "List_ChargeInfo",
                type: "decimal(18,2)",
                nullable: false,
                comment: "个人账户支付",
                oldClrType: typeof(decimal),
                oldType: "decimal(18,10)",
                oldPrecision: 10,
                oldScale: 2,
                oldComment: "个人账户支付");

            migrationBuilder.AlterColumn<decimal>(
                name: "GRZF2",
                table: "List_ChargeInfo",
                type: "decimal(18,2)",
                nullable: false,
                comment: "个人自费",
                oldClrType: typeof(decimal),
                oldType: "decimal(18,10)",
                oldPrecision: 10,
                oldScale: 2,
                oldComment: "个人自费");

            migrationBuilder.AlterColumn<decimal>(
                name: "GRZF1",
                table: "List_ChargeInfo",
                type: "decimal(18,2)",
                nullable: false,
                comment: "个人自付",
                oldClrType: typeof(decimal),
                oldType: "decimal(18,10)",
                oldPrecision: 10,
                oldScale: 2,
                oldComment: "个人自付");

            migrationBuilder.AlterColumn<decimal>(
                name: "GRXJZF",
                table: "List_ChargeInfo",
                type: "decimal(18,2)",
                nullable: false,
                comment: "个人现金支付",
                oldClrType: typeof(decimal),
                oldType: "decimal(18,10)",
                oldPrecision: 10,
                oldScale: 2,
                oldComment: "个人现金支付");

            migrationBuilder.AddColumn<decimal>(
                name: "BDBLZPF",
                table: "List_ChargeInfo",
                type: "decimal(18,2)",
                nullable: false,
                defaultValue: 0m,
                comment: "白蛋白类制品费");

            migrationBuilder.AddColumn<decimal>(
                name: "BLZDF",
                table: "List_ChargeInfo",
                type: "decimal(18,2)",
                nullable: false,
                defaultValue: 0m,
                comment: "病理诊断费");

            migrationBuilder.AddColumn<decimal>(
                name: "FSSZLXMF",
                table: "List_ChargeInfo",
                type: "decimal(18,2)",
                nullable: false,
                defaultValue: 0m,
                comment: "非手术治疗项目费");

            migrationBuilder.AddColumn<decimal>(
                name: "HLF",
                table: "List_ChargeInfo",
                type: "decimal(18,2)",
                nullable: false,
                defaultValue: 0m,
                comment: "护理费");

            migrationBuilder.AddColumn<decimal>(
                name: "JCCLF",
                table: "List_ChargeInfo",
                type: "decimal(18,2)",
                nullable: false,
                defaultValue: 0m,
                comment: "检查用一次性医用材料费");

            migrationBuilder.AddColumn<decimal>(
                name: "KFF",
                table: "List_ChargeInfo",
                type: "decimal(18,2)",
                nullable: false,
                defaultValue: 0m,
                comment: "康复费");

            migrationBuilder.AddColumn<decimal>(
                name: "KJYWF",
                table: "List_ChargeInfo",
                type: "decimal(18,2)",
                nullable: false,
                defaultValue: 0m,
                comment: "抗菌药物费");

            migrationBuilder.AddColumn<decimal>(
                name: "LCWLZLF",
                table: "List_ChargeInfo",
                type: "decimal(18,2)",
                nullable: false,
                defaultValue: 0m,
                comment: "临床物理治疗费");

            migrationBuilder.AddColumn<decimal>(
                name: "LCZDXMF",
                table: "List_ChargeInfo",
                type: "decimal(18,2)",
                nullable: false,
                defaultValue: 0m,
                comment: "临床诊断项目费");

            migrationBuilder.AddColumn<decimal>(
                name: "MZF",
                table: "List_ChargeInfo",
                type: "decimal(18,2)",
                nullable: false,
                defaultValue: 0m,
                comment: "麻醉费");

            migrationBuilder.AddColumn<decimal>(
                name: "NXYZLZPF",
                table: "List_ChargeInfo",
                type: "decimal(18,2)",
                nullable: false,
                defaultValue: 0m,
                comment: "凝血因子类制品费");

            migrationBuilder.AddColumn<decimal>(
                name: "QDBLZPF",
                table: "List_ChargeInfo",
                type: "decimal(18,2)",
                nullable: false,
                defaultValue: 0m,
                comment: "球蛋白类制品费");

            migrationBuilder.AddColumn<decimal>(
                name: "QTF",
                table: "List_ChargeInfo",
                type: "decimal(18,2)",
                nullable: false,
                defaultValue: 0m,
                comment: "其他费");

            migrationBuilder.AddColumn<decimal>(
                name: "QTFY",
                table: "List_ChargeInfo",
                type: "decimal(18,2)",
                nullable: false,
                defaultValue: 0m,
                comment: "其他费用");

            migrationBuilder.AddColumn<decimal>(
                name: "SSCLF",
                table: "List_ChargeInfo",
                type: "decimal(18,2)",
                nullable: false,
                defaultValue: 0m,
                comment: "手术用一次性医用材料费");

            migrationBuilder.AddColumn<decimal>(
                name: "SSF",
                table: "List_ChargeInfo",
                type: "decimal(18,2)",
                nullable: false,
                defaultValue: 0m,
                comment: "手术费");

            migrationBuilder.AddColumn<decimal>(
                name: "SSZLF",
                table: "List_ChargeInfo",
                type: "decimal(18,2)",
                nullable: false,
                defaultValue: 0m,
                comment: "手术治疗费");

            migrationBuilder.AddColumn<decimal>(
                name: "SYSZDF",
                table: "List_ChargeInfo",
                type: "decimal(18,2)",
                nullable: false,
                defaultValue: 0m,
                comment: "实验室诊断费");

            migrationBuilder.AddColumn<decimal>(
                name: "Total",
                table: "List_ChargeInfo",
                type: "decimal(18,2)",
                nullable: false,
                defaultValue: 0m,
                comment: "总费用");

            migrationBuilder.AddColumn<decimal>(
                name: "XBYZLZPF",
                table: "List_ChargeInfo",
                type: "decimal(18,2)",
                nullable: false,
                defaultValue: 0m,
                comment: "细胞因子类制品费");

            migrationBuilder.AddColumn<decimal>(
                name: "XF",
                table: "List_ChargeInfo",
                type: "decimal(18,2)",
                nullable: false,
                defaultValue: 0m,
                comment: "血费");

            migrationBuilder.AddColumn<decimal>(
                name: "XYF",
                table: "List_ChargeInfo",
                type: "decimal(18,2)",
                nullable: false,
                defaultValue: 0m,
                comment: "西药费");

            migrationBuilder.AddColumn<decimal>(
                name: "YBYLFWF",
                table: "List_ChargeInfo",
                type: "decimal(18,2)",
                nullable: false,
                defaultValue: 0m,
                comment: "一般医疗服务费");

            migrationBuilder.AddColumn<decimal>(
                name: "YBZLCZF",
                table: "List_ChargeInfo",
                type: "decimal(18,2)",
                nullable: false,
                defaultValue: 0m,
                comment: "一般治疗操作费");

            migrationBuilder.AddColumn<decimal>(
                name: "YXXZDF",
                table: "List_ChargeInfo",
                type: "decimal(18,2)",
                nullable: false,
                defaultValue: 0m,
                comment: "影像学诊断费");

            migrationBuilder.AddColumn<decimal>(
                name: "ZCYF",
                table: "List_ChargeInfo",
                type: "decimal(18,2)",
                nullable: false,
                defaultValue: 0m,
                comment: "中成药费");

            migrationBuilder.AddColumn<decimal>(
                name: "ZCYF1",
                table: "List_ChargeInfo",
                type: "decimal(18,2)",
                nullable: false,
                defaultValue: 0m,
                comment: "中草药费");

            migrationBuilder.AddColumn<decimal>(
                name: "ZFJE",
                table: "List_ChargeInfo",
                type: "decimal(18,2)",
                nullable: false,
                defaultValue: 0m,
                comment: "自付金额");

            migrationBuilder.AddColumn<decimal>(
                name: "ZLCLF",
                table: "List_ChargeInfo",
                type: "decimal(18,2)",
                nullable: false,
                defaultValue: 0m,
                comment: "治疗用一次性医用材料费");

            migrationBuilder.AddColumn<decimal>(
                name: "ZYZLF",
                table: "List_ChargeInfo",
                type: "decimal(18,2)",
                nullable: false,
                defaultValue: 0m,
                comment: "中医治疗费");
        }

        /// <inheritdoc />
        protected override void Down(MigrationBuilder migrationBuilder)
        {
            migrationBuilder.DropColumn(
                name: "BDBLZPF",
                table: "List_ChargeInfo");

            migrationBuilder.DropColumn(
                name: "BLZDF",
                table: "List_ChargeInfo");

            migrationBuilder.DropColumn(
                name: "FSSZLXMF",
                table: "List_ChargeInfo");

            migrationBuilder.DropColumn(
                name: "HLF",
                table: "List_ChargeInfo");

            migrationBuilder.DropColumn(
                name: "JCCLF",
                table: "List_ChargeInfo");

            migrationBuilder.DropColumn(
                name: "KFF",
                table: "List_ChargeInfo");

            migrationBuilder.DropColumn(
                name: "KJYWF",
                table: "List_ChargeInfo");

            migrationBuilder.DropColumn(
                name: "LCWLZLF",
                table: "List_ChargeInfo");

            migrationBuilder.DropColumn(
                name: "LCZDXMF",
                table: "List_ChargeInfo");

            migrationBuilder.DropColumn(
                name: "MZF",
                table: "List_ChargeInfo");

            migrationBuilder.DropColumn(
                name: "NXYZLZPF",
                table: "List_ChargeInfo");

            migrationBuilder.DropColumn(
                name: "QDBLZPF",
                table: "List_ChargeInfo");

            migrationBuilder.DropColumn(
                name: "QTF",
                table: "List_ChargeInfo");

            migrationBuilder.DropColumn(
                name: "QTFY",
                table: "List_ChargeInfo");

            migrationBuilder.DropColumn(
                name: "SSCLF",
                table: "List_ChargeInfo");

            migrationBuilder.DropColumn(
                name: "SSF",
                table: "List_ChargeInfo");

            migrationBuilder.DropColumn(
                name: "SSZLF",
                table: "List_ChargeInfo");

            migrationBuilder.DropColumn(
                name: "SYSZDF",
                table: "List_ChargeInfo");

            migrationBuilder.DropColumn(
                name: "Total",
                table: "List_ChargeInfo");

            migrationBuilder.DropColumn(
                name: "XBYZLZPF",
                table: "List_ChargeInfo");

            migrationBuilder.DropColumn(
                name: "XF",
                table: "List_ChargeInfo");

            migrationBuilder.DropColumn(
                name: "XYF",
                table: "List_ChargeInfo");

            migrationBuilder.DropColumn(
                name: "YBYLFWF",
                table: "List_ChargeInfo");

            migrationBuilder.DropColumn(
                name: "YBZLCZF",
                table: "List_ChargeInfo");

            migrationBuilder.DropColumn(
                name: "YXXZDF",
                table: "List_ChargeInfo");

            migrationBuilder.DropColumn(
                name: "ZCYF",
                table: "List_ChargeInfo");

            migrationBuilder.DropColumn(
                name: "ZCYF1",
                table: "List_ChargeInfo");

            migrationBuilder.DropColumn(
                name: "ZFJE",
                table: "List_ChargeInfo");

            migrationBuilder.DropColumn(
                name: "ZLCLF",
                table: "List_ChargeInfo");

            migrationBuilder.DropColumn(
                name: "ZYZLF",
                table: "List_ChargeInfo");

            migrationBuilder.AlterColumn<decimal>(
                name: "ZGDEBZ",
                table: "List_ChargeInfo",
                type: "decimal(18,10)",
                precision: 10,
                scale: 2,
                nullable: false,
                comment: "职工大额补助",
                oldClrType: typeof(decimal),
                oldType: "decimal(18,2)",
                oldComment: "职工大额补助");

            migrationBuilder.AlterColumn<decimal>(
                name: "YLJZZF",
                table: "List_ChargeInfo",
                type: "decimal(18,10)",
                precision: 10,
                scale: 2,
                nullable: false,
                comment: "医疗救助支付",
                oldClrType: typeof(decimal),
                oldType: "decimal(18,2)",
                oldComment: "医疗救助支付");

            migrationBuilder.AlterColumn<decimal>(
                name: "YBTCJJZF",
                table: "List_ChargeInfo",
                type: "decimal(18,10)",
                precision: 10,
                scale: 2,
                nullable: false,
                comment: "医保统筹基金支付",
                oldClrType: typeof(decimal),
                oldType: "decimal(18,2)",
                oldComment: "医保统筹基金支付");

            migrationBuilder.AlterColumn<decimal>(
                name: "SYBX",
                table: "List_ChargeInfo",
                type: "decimal(18,10)",
                precision: 10,
                scale: 2,
                nullable: false,
                comment: "商业保险",
                oldClrType: typeof(decimal),
                oldType: "decimal(18,2)",
                oldComment: "商业保险");

            migrationBuilder.AlterColumn<decimal>(
                name: "QYBC",
                table: "List_ChargeInfo",
                type: "decimal(18,10)",
                precision: 10,
                scale: 2,
                nullable: false,
                comment: "企业补充",
                oldClrType: typeof(decimal),
                oldType: "decimal(18,2)",
                oldComment: "企业补充");

            migrationBuilder.AlterColumn<decimal>(
                name: "JMDBBX",
                table: "List_ChargeInfo",
                type: "decimal(18,10)",
                precision: 10,
                scale: 2,
                nullable: false,
                comment: "居民大病保险",
                oldClrType: typeof(decimal),
                oldType: "decimal(18,2)",
                oldComment: "居民大病保险");

            migrationBuilder.AlterColumn<decimal>(
                name: "GWYYLBZ",
                table: "List_ChargeInfo",
                type: "decimal(18,10)",
                precision: 10,
                scale: 2,
                nullable: false,
                comment: "公务员医疗补助",
                oldClrType: typeof(decimal),
                oldType: "decimal(18,2)",
                oldComment: "公务员医疗补助");

            migrationBuilder.AlterColumn<decimal>(
                name: "GRZHZF",
                table: "List_ChargeInfo",
                type: "decimal(18,10)",
                precision: 10,
                scale: 2,
                nullable: false,
                comment: "个人账户支付",
                oldClrType: typeof(decimal),
                oldType: "decimal(18,2)",
                oldComment: "个人账户支付");

            migrationBuilder.AlterColumn<decimal>(
                name: "GRZF2",
                table: "List_ChargeInfo",
                type: "decimal(18,10)",
                precision: 10,
                scale: 2,
                nullable: false,
                comment: "个人自费",
                oldClrType: typeof(decimal),
                oldType: "decimal(18,2)",
                oldComment: "个人自费");

            migrationBuilder.AlterColumn<decimal>(
                name: "GRZF1",
                table: "List_ChargeInfo",
                type: "decimal(18,10)",
                precision: 10,
                scale: 2,
                nullable: false,
                comment: "个人自付",
                oldClrType: typeof(decimal),
                oldType: "decimal(18,2)",
                oldComment: "个人自付");

            migrationBuilder.AlterColumn<decimal>(
                name: "GRXJZF",
                table: "List_ChargeInfo",
                type: "decimal(18,10)",
                precision: 10,
                scale: 2,
                nullable: false,
                comment: "个人现金支付",
                oldClrType: typeof(decimal),
                oldType: "decimal(18,2)",
                oldComment: "个人现金支付");
        }
    }
}
